P-n Junction and its characteristics